package com.util;

import com.baidu.aip.contentcensor.AipContentCensor;
import com.baidu.aip.contentcensor.EImgType;
import com.baomidou.mybatisplus.extension.api.ApiController;
import org.json.JSONObject;

public class Approve {
    public static  final String APP_ID = "23533170";
    public static  final String API_KEY = "oWG2uxAqOLzffkjwflmHWugL";
    public static  final String SECRET_KEY = "l4chW4zv0iiYnRRirv4rM3me9snxMkgo";
    static AipContentCensor client=  new AipContentCensor(APP_ID, API_KEY, SECRET_KEY);
    public static JSONObject sampletext(String text) {
        // 参数为本地图片路径
        JSONObject response = client.textCensorUserDefined(text);
        return  response;
    }
}
